<template>
  <div class="get-action">
    <div
      class="bgimage-holder"
      :style="{
        backgroundImage: 'url(' + require('@/assets/action-bg.jpeg') + ')',
      }"
    ></div>
    <div class="content">
      <h1>立即获取该物料源码！</h1>
      <h4>已有超过 1,000 个企业或开发者信任XBoot一站式快速开发平台。</h4>
      <a class="action-btn">立即获取</a>
    </div>
  </div>
</template>

<script>
export default {
  name: "action",
  components: {},
  data() {
    return {};
  },
  methods: {},
  mounted() {},
};
</script>

<style scoped lang="less">
.get-action {
  position: relative;
  padding: 110px 0;

  &::before {
    content: "";
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    position: absolute;
    background: linear-gradient(to left, #7347c1, #0674ec);
    opacity: 0.9;
    z-index: 1;
  }

  .bgimage-holder {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: 50% 50%;
    z-index: 0;
    transition: opacity 0.3s linear;
    opacity: 1;
  }

  .content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;

    h1 {
      font-size: 36px;
      font-weight: 400;
    }

    h4 {
      font-weight: 400;
      font-size: 18px;
      margin-top: 24px;
    }

    .action-btn {
      background: #fff;
      color: #0674ec;
      margin-top: 50px;
      line-height: 55px;
      font-size: 16px;
      min-width: 195px;
      font-weight: 500;
      display: inline-block;
      box-shadow: 0 4px 30px rgb(0 0 0 / 10%);
      transition: 0.3s ease;
      border: none;
      border-radius: 100px;

      &:hover {
        background: #eee;
        color: #0056b3;
      }
    }
  }
}
</style>
